<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/common/taglib.jsp" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<base href="<%=basePath%>" />
		<title>添加关键字</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=7" />
		<meta http-equiv="pragma" content="no-cache" />
		<meta http-equiv="cache-control" content="no-cache" />
		<meta http-equiv="expires" content="0" />
		<style type="text/css">
			#addForm label.error {
				font-size: 12px;
				color: red;
			}
		</style>
		<script type="text/javascript" src="<%=path%>/js/ui.js"></script>
		<link id="editCss" rel="stylesheet" type="text/css"href="<%=path%>/css/style.css" />
		<link id="editCss" rel="stylesheet" type="text/css"href="<%=path%>/css/right.css" />
		<script src="<%=path%>/js/jquery.js" type="text/javascript"></script>
		<script src="<%=path%>/js/jquery.validate.js" type="text/javascript"></script>
		<!-- validate begin  -->
		<script type="text/javascript">
		</script>
	</head>
	<body class="bg">
		<div id="nav" class="crumbs">
			当前位置：
			<a href="<%=path%>/zebra/monitor/keyword/monitorKeywordAction" class="title">关键字管理 </a>&gt; 添加关键字
		</div>
		<div class="search ctitle">
			<div class="tab">
				<span class="right"></span>
				<span class="font-blue14pxb">添加关键字</span>
			</div>
		</div>
		<div class="tableBox fwidth">
			<form id="addForm" method="post" action="<%=path%>/zebra/monitor/keyword/monitorKeywordAction">
				<input type="hidden" name="method" id="method" value="addRelationship" />
				<input type="hidden" name="id" id="id" value="${keyword.id}" />
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td class="text_left" colspan="4">请为关键字【${keyword.text}】添加监控类别</td>
					</tr>
						<c:choose>
						<c:when test="${empty monitorTypeList}">
								<td class="text_left" colspan="4">
									没有可用的监控类别的记录！
								</td>
							</c:when>
						<c:otherwise>
							<tr>
							<c:forEach items="${monitorTypeList}" var="monitorType" varStatus="index">
									<c:if test="${index.count % 4 == 0 }"></tr><tr></c:if>
									<td>
									<input type="checkbox" value="${monitorType.id }" 
											name="monitorTypes" id="monitorTypes">${monitorType.type}</input></td>
							</c:forEach>
							</tr>
						</c:otherwise>
						</c:choose>
					<tr class="footer">
						<td colspan="4" align="center" >
							<input type="submit" name="save" value="添 加" class="button" />
						</td>
					</tr>
				</table>
			</form>
		</div>
	</body>
</html>
